package Test07;

public class test01Test {
    public static void main(String[] args) {
        test01.teacherName = "何老师";

        //1、创建第一个学生对象
        test01 stu1 = new test01();
        stu1.setName("张三");
        stu1.setAge(23);
        stu1.setGender("男");
        //stu1.teacherName = "何老师";

        stu1.study();
        stu1.show();

        System.out.println("====================");

        //2、创建第二个学生对象
        test01 stu2 = new test01();
        stu2.setName("李四");
        stu2.setAge(24);
        stu2.setGender("女");
        //stu2.teacherName = "孙老师";

        stu2.study();
        stu2.show();
    }
}
